package com.key.w8.http1.connection.environment;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author: k8
 * @CreateTime: 2025-03-05
 * @Version: 1.0
 */
@ConfigurationProperties(prefix = "k8http.client")
@Data
public class ClientPoolEnvironment extends Http1Environment<ClientPoolEnvironment>{
    public static final int DEFAULT_MAX_MAX_REQUEST_SENDS = 100000;    // 默认最大请求发送数
    private int maxRequestSends = DEFAULT_MAX_MAX_REQUEST_SENDS;


    public ClientPoolEnvironment() {
        super(false);
    }

    @Override
    protected ClientPoolEnvironment self() {
        return this;
    }
}
